Skip to content

docs: link each example file from the README - #20

Merged
tomasr78 merged 1 commit into
mainfrom
readme-example-file-links
Nov 7, 2026
Merged

tomasr78 merged 1 commit into
mainfrom
readme-example-file-links

Conversation

@tomasr78

@tomasr78 tomasr78 commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

The README links the examples only through the folder URL (/tree/main/examples). https://github.com/robots.txt disallows /*/tree/ in the User-agent: * group, which Googlebot follows, and in the group for GPTBot, OAI-SearchBot, ClaudeBot, anthropic-ai and PerplexityBot. Single-file /blob/ URLs are allowed. So these crawlers never read the folder listing, and they only find an example file when some page links it directly.

This PR keeps the folder link and adds a list under it: each example file, linked by its absolute /blob/main/... URL, with a few words on what it does. Absolute URLs match the README's other links and also work where the README is shown outside GitHub.

  • README only; no code changes.
  • All 12 links return HTTP 200.
  • thumbnail/main.go is included: it converts PDF to JPG directly and does not use the extract converter.
  • advanced/main.go is already linked earlier in the README; it is listed again so the list is complete.

🤖 Generated with Claude Code

The README linked the examples only through the folder URL
(/tree/main/...). https://github.com/robots.txt disallows /*/tree/
for Googlebot (User-agent: *) and for the AI crawlers, so search
engines never read the folder listing. Each example file is now also
linked by its /blob/ URL, which they may crawl.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 6, 2026 14:41

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The README update improves example discoverability and has no active review issues.

No open issues 🎉

What changed in this PR

This documentation-only PR makes the Go library’s examples easier to discover by linking directly to each example file from the README.

Changes:

  • Adds absolute /blob/main/ links to all 12 example files, each with a short description.
  • Preserves the existing examples-folder link; no code changes.
File Description
README.md Adds a complete, descriptive list of direct links to example files.

Review effort: Balanced

@tomasr78
tomasr78 merged commit 606cbee into main Nov 7, 2026
4 checks passed
@tomasr78
tomasr78 deleted the readme-example-file-links branch November 7, 2026 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants